<?php ob_start();
    $boattype       = Model_Listing_Attribute::one(array('_id' => $this->listing->boattype));
    $boatcategory   = Model_Listing_Attribute::one(array('_id' => $this->listing->boatcategory));
    $internal_lng = $this->listing->getInternalLanguage();
    
?>
    <?php if (!empty($this->listing->make)) {echo $this->dtDd($this->t('Make', $internal_lng), $this->listing->make);}?>
    <?php
    if (!empty($this->listing->feature)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Boat::getFeature();
        echo $this->dtDd($this->t('boat-form-feature', $internal_lng), $this->t($views[$this->listing->feature], $internal_lng));
    }
    ?>
    <?php //if (!empty($this->listing->feature)) {echo $this->dtDd($this->t('Feature'), $this->listing->feature);}?>
    <?php
    if (!empty($this->listing->length)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Boat::getLength();
        echo $this->dtDd($this->t('Length', $internal_lng), $this->t($views[$this->listing->length], $internal_lng));
    }
    ?>
    <?php //if (!empty($this->listing->length)) {echo $this->dtDd($this->t('Length'), $this->listing->length);}?>
    <?php if (!empty($this->listing->yearmanufactured)) {echo $this->dtDd($this->t('Year Manufactured', $internal_lng), $this->listing->yearmanufactured);}?>
    <?php if (!empty($this->listing->numberpreviousowner)) {echo $this->dtDd($this->t('Number of previous owners', $internal_lng), $this->listing->numberpreviousowner);}?>
    <?php
    if (!empty($this->listing->boattype)) {
        $i          = 0;
        $field      = '';
        echo $this->dtDd($this->t('Boat Type', $internal_lng), $boattype->name);
    }
    ?>
    <?php
    if (!empty($this->listing->boatcategory)) {
        $i          = 0;
        $field      = '';
        echo $this->dtDd($this->t('Boat Category', $internal_lng), $boatcategory->name);
    }
    ?>
    
    <?php
    if (!empty($this->listing->enginetype)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Boat::getEngineType();
        echo $this->dtDd($this->t('Engine Type', $internal_lng), $this->t($views[$this->listing->enginetype], $internal_lng));
    }
    ?>
    <?php
    if (!empty($this->listing->fuelcapacity)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Boat::getFuelCapacity();
        echo $this->dtDd($this->t('Fuel Capacity', $internal_lng), $this->t($views[$this->listing->fuelcapacity], $internal_lng));
    }
    ?>
    <?php
    if (!empty($this->listing->fueltype)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Boat::getFuelType();
        echo $this->dtDd($this->t('Fuel Type', $internal_lng), $this->t($views[$this->listing->fueltype], $internal_lng));
    }
    ?>
    <?php
    if (!empty($this->listing->trailerincluded)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Boat::getTrailerIncluded();
        echo $this->dtDd($this->t('Trailer Included', $internal_lng), $this->t($views[$this->listing->trailerincluded], $internal_lng));
    }
    ?>
    <?php
    if (!empty($this->listing->modelyear)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Boat::getModelYear();
        echo $this->dtDd($this->t('Model Year', $internal_lng), $this->t($views[$this->listing->modelyear], $internal_lng));
    }
    ?>
    <?php
    if (!empty($this->listing->hullmaterial)) {
        $i          = 0;
        $field      = '';
        $views = Model_Listing_Boat::getHullMaterial();
        echo $this->dtDd($this->t('Hull Material', $internal_lng), $this->t($views[$this->listing->hullmaterial], $internal_lng));
    }
    ?>
    
<?php $content = trim(ob_get_clean())?>
<?php if (!empty($content)):?>
<section class="category">
    <div id="detail_content_text_category">
        <h2><?php echo $this->t('Boat Information', $internal_lng)?></h2>
        <dl>
            <?php echo $content ?>
        </dl>
    </div>
</section>
<?php endif;?>
